package com.vanceinfo;
class Cat{
	private double weight;
	public Cat(double c_weight){
		weight = c_weight;
	}
	public boolean eatMouse(double temp,boolean living){
		if(!living){
			weight=weight+temp;
			System.out.println("the house has dead.");
			living=false;
		}
		else{
			System.out.println("the house has escaped.");
			living=true;
		}	
		return living;
	}
	public double getWeight(){
		return weight;
	}
}
class Mouse{
	private double weight1;
	public Mouse(double m_weight){
		weight1=m_weight;
	}
	public double loseWeight(){
		return weight1;
		
	}
}
public class CatAndMouse{
	public static void main(String[] args){
		Cat c = new Cat(102.1);
		Mouse m = new Mouse(11.1);
		c.eatMouse(m.loseWeight(), false);
		System.out.println(c.getWeight());
	}
}


	

